package com.meituan.sdk.model.waimaiNg.diancan.diancanShopStatusUpdate;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 门店业务开通
* This file was automatically generated.
*/
@ApiMeta(
    path = "/waimai/ng/diancan/shop/status/update",
    businessId = 2,
    apiVersion = "10004",
    apiName = "diancan_shop_status_update",
    needAuth = true
)
public class DiancanShopStatusUpdateRequest implements MeituanRequest<DiancanShopStatusUpdateResponse> {
    /**
    * <p data-diff-id="ct-diff-id-f6008565-7fff-4767-bfc0-9b2bf54f1c14"><font style="font-size:14px;line-height:22px" data-size="14">厂商门店配置列表，<span style="color: ">批量限制20</span></font></p>
    */
    @NotEmpty(message = "requestData不能为空")
    @SerializedName("requestData")
    private List<ShopBizConfigRequest> requestData;
    /**
    * <p data-diff-id="ct-diff-id-44c21563-7a8e-4b07-9a78-1ddaff8d5284"><font style="font-size:14px;line-height:22px" data-size="14">厂商门店ID列表，用,隔开，比如 123,300</font></p>
    */
    @NotBlank(message = "appPoiCodes不能为空")
    @SerializedName("appPoiCodes")
    private String appPoiCodes;

    public List<ShopBizConfigRequest> getRequestData() {
        return requestData;
    }
    public void setRequestData(List<ShopBizConfigRequest> requestData) {
        this.requestData = requestData;
    }
    public String getAppPoiCodes() {
        return appPoiCodes;
    }
    public void setAppPoiCodes(String appPoiCodes) {
        this.appPoiCodes = appPoiCodes;
    }


    @Override
    public MeituanResponse<DiancanShopStatusUpdateResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<DiancanShopStatusUpdateResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "DiancanShopStatusUpdateRequest{" + "requestData=" + requestData + "," + "appPoiCodes=" + appPoiCodes + "}";
    }
}
